<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        
        <div class="layui-form-item layui-hide">
            <label class="layui-form-label">应用id</label>
            <div class="layui-input-block">
                <input type="text" name="miniapp_id" class="layui-input" lay-verify="required" placeholder="请输入应用id" value="{$row.miniapp_id|default=''}">
            </div>
        </div>
        <!--<div class="layui-form-item">
            <label class="layui-form-label">组id</label>
            <div class="layui-input-block">
                <input type="text" name="group_id" class="layui-input" lay-verify="required" placeholder="请输入组id" value="{$row.group_id|default=''}">
            </div>
        </div>-->
        <div class="layui-form-item">
            <label class="layui-form-label">角色组</label>
            <div class="layui-input-block">
                <select name="group_id" lay-verify="required" data-select="/manage/admin/miniapp/module/group?miniapp_id={$row.miniapp_id}" data-fields="group.id,group.name" data-value="{$row.group_id|default=''}">
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">功能名</label>
            <div class="layui-input-block">
                <input type="text" name="name" class="layui-input" lay-verify="required" placeholder="请输入功能名" value="{$row.name|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">类型</label>
            <div class="layui-input-block">
                {foreach $getTypeList as $k=>$v}
                <input type="radio" name="type" value="{$k}" title="{$v}" {in name="k" value="$row.type"}checked=""{/in}>
                {/foreach}
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">价格</label>
            <div class="layui-input-block">
                <input type="text" name="price" class="layui-input" lay-verify="required" placeholder="请输入价格" value="{$row.price|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">有效天数</label>
            <div class="layui-input-block">
                <input type="text" name="valid_days" class="layui-input"  placeholder="请输入有效天数" value="{$row.valid_days|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">描述</label>
            <div class="layui-input-block">
                <input type="text" name="desc" class="layui-input"  placeholder="请输入描述" value="{$row.desc|default=''}">
            </div>
        </div>
        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>